<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<link id="favicon" href="favicon.ico" rel="icon" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户登录</title>
<link rel="stylesheet" href="css/all.css" />
<link rel="stylesheet" href="css/login.css" />
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="js/jquery.validate.min.js"></script>
<script language="javascript" type="application/javascript">
	$(document).ready(function(){
		$.validator.setDefaults({       
			submitHandler: function(form) {    
				form.submit();    
			}
		});
		jQuery.validator.addMethod("stringCheck", function(value, element) {       
			return this.optional(element) || /^[\u0391-\uFFE5\w]+$/.test(value);       
		}, "只能包括中文字、英文字母、数字和下划线");
		$('#submitForm').validate({
			rules:{
				username:{
					required:true,
					stringCheck:true
				},
				password:{
					required:true
				}
			},
			messages:{
				username:{
					required:'请填写用户名',
					stringCheck:'用户名只能包括中文字、英文字母、数字和下划线'
				},
				password:{
					required:'请填写登录密码',
				}
			},
			focusInvalid: false,
			onkeyup: false,
			errorPlacement:function(error,element){
				error.appendTo(element.parent());
			}
		});
	});
</script>
</head>
<body id="lg_body">
	<div id="lg_wrap">
		<div id="ln_header">
			<div class="header_logo_bg">
				<div class="header_link"> 
						<a target="_blank" href="http://www.changdajx.cn/%E8%81%94%E7%B3%BB%E6%88%91%E4%BB%AC/"
						class="help_icon">问题咨询</a>&nbsp;&nbsp; 
						<a target="_blank"
						href="http://www.changdajx.cn"
						class="home_icon">驾校首页</a>&nbsp;&nbsp;
				</div>
			</div>
		</div>
		<div class="main_link">
			<a href="/jxgl/login"><b>首页</b></a> &gt; <font color="#666666">用户登录</font>
		</div>
		<div id="ln_main" style="width:880px">
			<div id="main_left">
				<div class="pro_cont">
					<a target="_blank" href="http://www.changdajx.cn"></a>
				</div>
				<div class="regist_word">
				</div>
				<div class="regist_button">
					<input name="register" type="button" value="注册" class="login_btn_style" style="float:right;margin-right:120px;" onclick="location.href='/jxgl/reg.jsp'"/>
				</div>
			</div>
			<div id="main_right" style="width:510px;">
            	<div class="login_box">
                	<div class="user_login_tit" style="382px;">
						<ul class="tsearch-tab clearfix">
							<li class="current">学员登录</a></li>							
						</ul>
					</div>
                    <div class="tabline">
					</div>                    
                	<form action="login" method="POST" id="submitForm">
                    <div class="user_login_table" style="width:490px;">
                    	<div class="username">
                            <div class="login_name">
                                用户名:
                            </div>
                            <div>
                                <input type="text" tabindex="1" class="input_box" id="username" name="username">
                            </div>
                        </div>
                        <div class="password">
                            <div class="login_name">
                                密码:
                            </div>
                            <div>
                                <input type="password" tabindex="2" class="input_box" id="password" name="password">
                                <input type="checkbox" name="rememberMe" value="true"/>记住密码?                                 
                            </div>                            
                        </div>
                        <div class="login_btn">
                        	<input name="login" type="submit" value="登录" class="login_btn_style" style="float:right;margin-right:145px;">&nbsp;
							
						</div>
					</div>					
				</form>
                </div>				
			</div>
		</div>
	</div>
</body>
</html>